package com.three.controller;

import com.three.service.OperLogService;
import com.three.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class OperLogController {
    @Autowired
    private OperLogService operLogService;

    //查询所有日志信息
    @GetMapping("/getLog")
    public R getLog(Integer currentPage, Integer pageSize){
        return operLogService.getLog(currentPage, pageSize);
    }
}
